/**
 ******************************************************************************
 * @file           : bsp_dht11.h
 * @brief          : DHT11 Temperature Humidity Sensor Header (STM32F4xx)
 ******************************************************************************
 */

#ifndef __BSP_DHT11_H
#define __BSP_DHT11_H

#include <stdint.h>
#include "./Devices/DHT11/bsp_dht11_config.h"

typedef struct
{
    uint8_t humidity;
    uint8_t temperature;
} DHT11_Data_t;

uint8_t dht11_init(void);
void dht11_deinit(void);
uint8_t dht11_read_data(DHT11_Data_t *data);

#endif
